package org.colcon.web.client.ui.deprecated;

import org.colcon.web.client.Collective_Congress;
import org.colcon.web.client.ui.ColConPanel;
import org.colcon.web.model.framework.IItem;

import com.google.gwt.user.client.ui.HTML;

public class NamedItemListPanel extends ColConPanel
{
	public NamedItemListPanel(Collective_Congress client, IItem[] items) 
	{
		super(client, "list");
		
		if(items != null && items.length > 0)
		{
			for(IItem item : items)
				add(new NamedItemPanel(client, item));
		}
		else
		{
			HTML html = new HTML("No items found");
			html.setStyleName("home");
			add(html);
		}
	}
}
